
Route::group(function () {
    //资讯公告
        Route::get("/notice_index", "app\admin\controller\Notice@index")->name("notice.index");// 列表
        Route::get("/notice_detail", "app\admin\controller\Notice@detail")->name("notice.detail");// 详情
        Route::get("/notice_get_type", "app\admin\controller\Notice@get_type")->name("notice.get_type");// 获取类型
        Route::post("/notice_switch", "app\admin\controller\Notice@notice_switch")->name("notice.notice_switch");// 切换开关
        Route::post("/notice_delete", "app\admin\controller\Notice@delete")->name("notice.delete");// 删除
        Route::post("/notice_create", "app\admin\controller\Notice@create")->name("notice.create");// 创建  
        Route::post("/notice_edit", "app\admin\controller\Notice@edit")->name("notice.edit");// 编辑
        Route::get("/noticeType_index", "app\admin\controller\NoticeType@index")->name("noticeType.index");// 列表
        Route::get("/noticeType_detail", "app\admin\controller\NoticeType@detail")->name("noticeType.detail");// 详情
        Route::post("/noticeType_delete", "app\admin\controller\NoticeType@delete")->name("noticeType.delete");// 删除
        Route::post("/noticeType_create", "app\admin\controller\NoticeType@create")->name("noticeType.create");// 创建  
        Route::post("/noticeType_edit", "app\admin\controller\NoticeType@edit")->name("noticeType.edit");// 编辑
    })
->allowCrossDomain()// 跨域
->middleware(middleware\Auth::class)// jwt认证
->middleware(middleware\Permission::class);// 权限认证